<?php
$array = $_POST;
$file = dirname(__FILE__)."/rec/".date("Y-m-d",time()).'.txt';
file_put_contents($file,"reciv:".json_encode($array).'---'.date('Y-m-d H:i:s')."\n",FILE_APPEND);